home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1998 August / PC Plus SuperCD 50a Issue 142 (CD142a) (August 1998).iso / handson / supercede / Knowodys / Projects / Rectang / 1.1 / Callback.java < prev   
Encoding:
Java Source  |  1997-11-24  |  501 b   |  41 lines

  1. /*
  2.  *    File:
  3.  *    Callback.java
  4.  *
  5.  *  Copyright (c) 1996-1997 SuperCede, Inc. All rights reserved.
  6.  *
  7.  */
  8.  
  9. import java.awt.*;
  10.  
  11. public class Callback
  12. {
  13.     public static final int Rectangle = 0;
  14.     public static final int Circle = 1;
  15.  
  16.     public int getShape ()
  17.     {
  18.         return Rectangle;
  19.     }
  20.  
  21.     public Color getColor ()
  22.     {
  23.         return Color.blue;
  24.     }
  25.  
  26.     public int getSize ()
  27.     {
  28.         return 50;
  29.     }
  30.  
  31.     public int getStep ()
  32.     {
  33.         return 3;
  34.     }
  35.  
  36.     public int getSleep ()
  37.     {
  38.         return 6;
  39.     }
  40. }
  41.